import 'package:get/get.dart';

import '../modules/device/bindings/device_binding.dart';
import '../modules/device/views/device_view.dart';
import '../modules/device_detail/bindings/device_detail_binding.dart';
import '../modules/device_detail/views/device_detail_view.dart';
import '../modules/download/bindings/download_binding.dart';
import '../modules/download/views/download_view.dart';
import '../modules/forgot_pwd/bindings/forgot_pwd_binding.dart';
import '../modules/forgot_pwd/views/forgot_pwd_view.dart';
import '../modules/home/bindings/home_binding.dart';
import '../modules/home/views/home_view.dart';
import '../modules/login/bindings/login_binding.dart';
import '../modules/login/views/login_view.dart';
import '../modules/message/bindings/message_binding.dart';
import '../modules/message/views/message_view.dart';
import '../modules/mine/bindings/mine_binding.dart';
import '../modules/mine/views/mine_view.dart';
import '../modules/mini/bindings/mini_binding.dart';
import '../modules/mini/views/mini_view.dart';
import '../modules/order_list/bindings/order_list_binding.dart';
import '../modules/order_list/views/order_list_view.dart';
import '../modules/reset_pwd/bindings/reset_pwd_binding.dart';
import '../modules/reset_pwd/views/reset_pwd_view.dart';
import '../modules/search/bindings/search_binding.dart';
import '../modules/search/views/search_view.dart';
import '../modules/setting/bindings/setting_binding.dart';
import '../modules/setting/views/setting_view.dart';
import '../modules/tabbar/bindings/tabbar_binding.dart';
import '../modules/tabbar/views/tabbar_view.dart';
import '../modules/update_pwd/bindings/update_pwd_binding.dart';
import '../modules/update_pwd/views/update_pwd_view.dart';
import '../modules/video_list/bindings/video_list_binding.dart';
import '../modules/video_list/views/video_list_view.dart';
import '../modules/webview/bindings/webview_binding.dart';
import '../modules/webview/views/webview_view.dart';

part 'app_routes.dart';

class AppPages {
  AppPages._();

  static const INITIAL = Routes.LOGIN;

  static final routes = [
    GetPage(
      name: _Paths.HOME,
      page: () => const HomeView(),
      binding: HomeBinding(),
    ),
    GetPage(
      name: _Paths.LOGIN,
      page: () => const LoginView(),
      binding: LoginBinding(),
    ),
    GetPage(
      name: _Paths.FORGOT_PWD,
      page: () => const ForgotPwdView(),
      binding: ForgotPwdBinding(),
    ),
    GetPage(
      name: _Paths.RESET_PWD,
      page: () => const ResetPwdView(),
      binding: ResetPwdBinding(),
    ),
    GetPage(
      name: _Paths.MINI,
      page: () => const MiniView(),
      binding: MiniBinding(),
    ),
    GetPage(
      name: _Paths.MINE,
      page: () => const MineView(),
      binding: MineBinding(),
    ),
    GetPage(
      name: _Paths.TABBAR,
      page: () => const TabbarView(),
      binding: TabbarBinding(),
    ),
    GetPage(
      name: _Paths.DEVICE,
      page: () => const DeviceView(),
      binding: DeviceBinding(),
    ),
    GetPage(
      name: _Paths.MESSAGE,
      page: () => const MessageView(),
      binding: MessageBinding(),
    ),
    GetPage(
      name: _Paths.DEVICE_DETAIL,
      page: () => DeviceDetailView(),
      binding: DeviceDetailBinding(),
    ),
    GetPage(
      name: _Paths.ORDER_LIST,
      page: () => const OrderListView(),
      binding: OrderListBinding(),
    ),
    GetPage(
      name: _Paths.DOWNLOAD,
      page: () => const DownloadView(),
      binding: DownloadBinding(),
    ),
    GetPage(
      name: _Paths.UPDATE_PWD,
      page: () => const UpdatePwdView(),
      binding: UpdatePwdBinding(),
    ),
    GetPage(
      name: _Paths.SETTING,
      page: () => const SettingView(),
      binding: SettingBinding(),
    ),
    GetPage(
      name: _Paths.SEARCH,
      page: () => const SearchView(),
      binding: SearchBinding(),
    ),
    GetPage(
      name: _Paths.WEBVIEW,
      page: () => const WebviewView(),
      binding: WebviewBinding(),
    ),
    GetPage(
      name: _Paths.VIDEO_LIST,
      page: () => const VideoListView(),
      binding: VideoListBinding(),
    ),
  ];
}
